﻿//using Newtonsoft.Json;
//using Newtonsoft.Json.Serialization;

//namespace NiuX.Json;

//public static class JsonSerializerSettingsInstance
//{
//    public static readonly JsonSerializerSettings CamelCase = new()
//    {
//        ContractResolver = new CamelCasePropertyNamesContractResolver(),
//    };

//    /// <summary>
//    /// 格式化
//    /// </summary>
//    public static readonly JsonSerializerSettings FormattingIndented = new()
//    {
//        Formatting = Formatting.Indented
//    };

//    public static readonly JsonSerializerSettings CamelCaseAndIndented = new()
//    {
//        ContractResolver = CamelCase.ContractResolver,
//        Formatting = FormattingIndented.Formatting
//    };

//    public static readonly JsonSerializerSettings IgnoreNullAndCamelCaseAndIndented = new JsonSerializerSettings()
//    {
//        NullValueHandling = NullValueHandling.Ignore,
//        ContractResolver = CamelCase.ContractResolver,
//        Formatting = FormattingIndented.Formatting
//    };
//}